<%@page import="com.lb.myeam.core.entity.UserEntity"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'list.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body bgcolor="#ef4136">
    <table border="0">
    	<tr>
    		<td align="center" bgcolor="yellow">序号</td>
    		<td align="center" bgcolor="yellow">account</td>
    		<td align="center" bgcolor="yellow">email</td>
    		<td align="center" bgcolor="yellow">sex</td>
    		<td align="center" bgcolor="yellow">birthday</td>
    		<td align="center" bgcolor="yellow">address</td>
    		<td align="center" bgcolor="yellow">name</td>
    		<td align="center" bgcolor="yellow">操作</td>
    	</tr>
    	
    	
    	<c:forEach var="item" items="${userList}" varStatus="varStatus">
    		<tr>
    			<td><input type="text" size="1" name="g" value="${varStatus.index+1}"></td>
	    		<td><input type="text" size="6" name="a" value="${item.account }"></td>
    			<td><input type="text" size="12" name="b" value="${item.email }"></td>
    			<td><input type="text" size="1" name="c" value="${item.sex }"></td>
    			<td><input type="text" size="6" name="d" value="${item.birthday }"></td>
    			<td><input type="text" size="6" name="e" value="${item.address }"></td>
    			<td><input type="text" size="3" name="f" value="${item.name }"></td>
	    		<td>
	    			<a href="servlet/UserServlet?act=delete&id=${item.id }">
	    				<input type="button" value="删除">
	    			</a>
	    			<a href="<%=basePath%>pages/user/user_update.jsp?account=${item.account }&${item.email }&${item.sex }&${item.birthday }&${item.address }&${item.name }" target="show">
	    				<input type="button" value="修改">
	    			</a>
	    			
	    		</td>
    		</tr>
    		
    	</c:forEach>
    	
    	
    	
    	
    	
    </table>
  </body>
</html>
